<?php
$arguments['title'] = '用户列表';
$arguments['location'] = array(
    "首页",
    "用户管理",
);
$arguments['css'] = array(
    PUBLIC_LIB.'fonts/hui_iconfont/iconfont.css',
    PUBLIC_LIB.'css/biz/enhanced.css',
);
$arguments['js'] = array(
    PUBLIC_LIB.'js/core/Tooltip/tooltip.js',
    PUBLIC_LIB.'js/biz/useredit.js',     
);
importHeader($arguments);
?>
<div class="formtitle"><span>用户信息</span></div>
    <form  id="jsForm">
    <input type="hidden" id="adminId" value="<?php if(isset($userDetail))echo $userDetail->adminId;?>"
    />
    <input type="hidden" id="keywords" value="<?php if(isset($keywords))echo $keywords;?>"/>
    <input type="hidden" id="page" value="<?php if(isset($page))echo $page;?>"/>
        <ul class="forminfos">
            <li>
                <label for="userName" class="label_input">用户名<font class="red">*</font></label>
                <input type="text" class="dfinput" id="userName" name="userName" value="<?php if(isset($userDetail))echo $userDetail->userName;?>" <?php if(isset($userDetail))echo "readonly='readonly'";?>/>
            </li>
            <li>
                <label for="phone" class="label_input">联系电话<font class="red">*</font></label>
                <input type="text" class="dfinput" id="phone" name="phone" value="<?php if(isset($userDetail))echo $userDetail->phone;?>"/>
            </li>
            <li>
                <label for="realName" class="label_input">真实姓名<font class="red">*</font></label>
                <input type="text" class="dfinput" id="realName" name="realName" value="<?php if(isset($userDetail))echo $userDetail->realName;?>"/>
            </li>
            <li>
                <label for="email" class="label_input">邮箱<font class="red">*</font></label>
                <input type="text" class="dfinput" id="email" name="email" value="<?php if(isset($userDetail))echo $userDetail->email;?>"/>
            </li>
            <li>
                <label for="position" class="label_input">职位<font class="red">*</font></label>
                <input type="text" class="dfinput" id="position" name="position" value="<?php if(isset($userDetail))echo $userDetail->position;?>"/>
            </li>
            <li>
                <label class="label_input">启用状态<font class="red">*</font></label>
                <span class="span_check">
                    <input type="radio" name="state" id="yes" value="1"
                    <?php 
                        if(isset($userDetail)){
                            if($userDetail->status == 1)
                               echo 'checked="checked"';
                        }else{
                            echo 'checked="checked"';
                        }
                    ?>/>
                    <label for="yes" class="label_checkbox" >启用</label>   
                </span>
                
                <span class="span_check">
                    <input type="radio" name="state" id="no" value="0"
                    <?php 
                        if(isset($userDetail)){
                            if($userDetail->status == 0)
                               echo 'checked="checked"';
                        }
                    ?>/>
                    <label for="no" class="label_checkbox">禁用</label>    
                </span>
            </li>
            <li>
                <label class="label_input">性别<font class="red">*</font></label>
                <span class="span_check">
                    <input type="radio" name="sex" id="yes" value="1"
                    <?php 
                        if(isset($userDetail)){
                            if($userDetail->sex == 1)
                               echo 'checked="checked"';
                        }else{
                            echo 'checked="checked"';
                        }
                    ?>/>
                    <label for="yes" class="label_checkbox" >男</label>   
                </span>
                
                <span class="span_check">
                    <input type="radio" name="sex" id="no" value="0"
                    <?php 
                        if(isset($userDetail)){
                            if($userDetail->sex == 0)
                               echo 'checked="checked"';
                        }
                    ?>/>
                    <label for="no" class="label_checkbox">女</label>    
                </span>
            </li>
            <li>
                <label for="textarea" class="label_input">描述<font class="red">*</font></label>
                <textarea name="textarea" class="textinput" id="textarea" onfocus="style.backgroundColor='#f8dd8b'" onblur="style.backgroundColor='#FFFFFF'"><?php if(isset($userDetail))echo $userDetail->remark;?></textarea>
            </li>
            <li>
                <label class="label_input">&nbsp;</label>
                <div>
                <input type="button" class="btn" value="提交" />
                <a href="/user/" class="btn_back">返回</a>
                </div>
            </li>
        </ul>
    </form>
<?php importFooter();?>